const app = getApp();
const {AskPage} = app._require("common/index");
const formMixin = app._require("mixins/form.mixin.js").default;
AskPage({
    data: {
        listItems: [
            "投资方", "投资额", "建设内容",
            "项目地址",
            "牵头领导", "责任单位/人", "计划完成时间", "当前阶段"
        ]
    },
    onShow: function (options) {
    },
    onLoad: function (options) {
        console.log(options.res);
        let item = JSON.parse(options.res);
        this.setData({
            "list_items": item,
            "name": options.name || "",
            "process": options.process || "0",
            "lngLat": options.lngLat || ""
        })
    },
    clickToMap(e) {
        console.log(this.data.lngLat);
        let lngLats = this.data.lngLat;
        let locations = lngLats.split(",");
        console.log(locations);
        wx.chooseLocation({
            latitude: locations[1],
            longitude: locations[0],
            success(res) {
                console.log(res)
            }
        })
    }
})
